@layout("/common/_container.html",{js:["/assets/modular/bulletin/carousel/bulletin.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">轮播图管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-xs12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <!--<input id="title" class="layui-input" type="text" placeholder="标题"/>-->
                            </div>
                            <div class="layui-inline">
                                <!--<button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>-->
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                <!--<button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>-->
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="bulletinTable" lay-filter="bulletinTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<style type="text/css">
    .layui-table-cell{
        height:auto !important;
    }
</style>
<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detailImg">查看图片</a>
     <!--<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看详情</a>-->
     @if(shiro.hasPermission("/bulletin/edit")){
     <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
     @}
    @if(shiro.hasPermission("/bulletin/delete")){
     <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}
</script>

<script type="text/html" id="imgs">
    <div>
        {{# for(var i=0;i<d.imgs.length;i++){  }}
        <img style="height:35px;width:35px;border-radius:50%;line-height:50px!important;" src="{{d.imgs[i]}}">
        {{# } }}

    </div>


</script>
@}